package org.gdpu.service.impl;

import org.gdpu.base.DaoSupport;
import org.gdpu.model.UserInfo;
import org.gdpu.service.UserInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: willson
 * Date: 13-11-7
 * Time: 上午9:14
 * To change this template use File | Settings | File Templates.
 */

@Service
@Transactional
public class UserInfoServiceImpl extends DaoSupport<UserInfo> implements UserInfoService {


    @Override
    public UserInfo findPersonByUserName(String userName) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("userName", userName);
        return (UserInfo) this.findSpecialObject(UserInfo.class, params);
    }
}
